<?php
/**
 * Html Helper class file.
 *
 * Simplifies the construction of HTML elements.
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake.libs.view.helpers
 * @since         CakePHP(tm) v 0.9.1
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
App::import('Helper', 'Html');
class HotgameHelper extends HtmlHelper {
    public function hotgame($id, $published = 1)
    {
        if($published){
            echo $this->image('tick.png', array('style'=>"cursor: pointer;",'alt'=>'published', 'onClick'=>"listItemTask('$id', 'unhotgame');"));
        }else{
            echo $this->image('publish_x.png', array('style'=>"cursor: pointer;",'alt'=>'published', 'onClick'=>"listItemTask('$id', 'hotgame');"));
        }
    }
}
